package com.ljq.anonymousInnerClassAndAPIs;

/**
 * Description: 匿名内部类,减少重新创建一个类去继承抽象类或者重写接口的步骤
 * Author: A
 * Date: 2025/2/24
 * Time: 16:30
 */
public class AnonymousInnerClassExample {
    public static void main(String[] args) {
   Flyable f=       new Flyable(){
            @Override
            public void fly() {
                System.out.println("会飞");
            }
        };
   f.fly();
    }
}
